//
//  YXScrollLabel.h
//  ScrollLabel
//
//  Created by rimi on 16/3/14.
//  Copyright © 2016年 YXXiang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum YXScrollAnimationTimeOption {
    CurveEaseInOut = 0,
    CurveEaseIn,
    CurveEaseOut,
    CurveLinear
} YXScrollAnimationTimeOption;
//枚举值
typedef enum YXScrollDirection {
    Top = 0,
    Bottom
} YXScrollDirection;
//代理
@protocol YXScrollLabelDelegate;

@interface YXScrollLabel : UIView

- (instancetype)initWithFrame:(CGRect)frame delegate:(id <YXScrollLabelDelegate>)delegate;
@property (nonatomic, strong) UIColor * textColor;//default is blackColor.

@end

@protocol YXScrollLabelDelegate <NSObject>

///TODO: Set The Data Of ScrollLabel To Animation.
- (NSArray < NSString * > *)dataOfScrollValue:(YXScrollLabel *)scrollLabel;
@optional
///TODO: Set Animation Time Function.
- (YXScrollAnimationTimeOption)timeFunctionOfScrollAnimation:(YXScrollLabel *)scrollLabel;//default is CurveEaseInOut
///TODO: Set Lable Scroll Direaction.
- (YXScrollDirection)directionForScrollLabel:(YXScrollLabel *)scrollLabel;//default is Top
///TODO: Set Duration Of Scrolling. 滚动时间
- (NSTimeInterval)scrollingDuration:(YXScrollLabel *)scrollLabel;//default is 1.0
///TODO: Set Font For LableText     标签字体
- (UIFont *)fontForText:(YXScrollLabel *)scrollLabel;//default is systemSizeOf: 15

@end

